<%@page import="dto.attendenceDTO"%>
<%@page import="vo.attendenceVO"%>
<%@page import="vo.employeesVO"%>
<%@page import="dto.employeesDTO"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="${pageContext.request.contextPath }/js/head_menu1.js"></script>
<%-- <script type="text/javascript" src="${pageContext.request.contextPath }/js/attendence.js"></script> --%>
<link rel="stylesheet" href = '${pageContext.request.contextPath }/css/main.css'>
</head>
<body>
<%
	String menu_sessionMid = (String)session.getAttribute("sessionMid");
	
	employeesDTO menu_edto = new employeesDTO();
	
	employeesVO menu_evo;
	
	menu_evo= menu_edto.getInfo(menu_sessionMid);
	
	attendenceDTO menu_adto = new attendenceDTO();
	
%>
<div class="head_menu1">
	<%if(menu_sessionMid != null){ %>
	<%if(menu_adto.attendence_state(menu_evo).equals("미출근")){ %>
		<div style="font-weight: bold;"><a href="#"  onclick="attendence()">출근</a> </div>
	<%}else if(menu_adto.attendence_state(menu_evo).equals("업무중")){ %>
		<div style="font-weight: bold;"><a href="#"  onclick="leave()">퇴근</a> </div>
	<%}else{ %>
		<div style="font-weight: bold; color: #454545; " >퇴근 처리 되었습니다. </div>
	<%} %>
	<div style="color: #454545;">
	<font style="font-weight: bold; color: black;" size="3"><%=menu_evo.getE_name() %></font>님이 로그인하셨습니다.
	</div>
	<div><a href= "#" onclick= "modify_myinfo()"><img src = '../images/icon_myinfo_modify.png'></a></div>
	
	<div><a href="#" onclick="message_list()"><img src = '../images/icon_note.png'></a></div>
	<div><a href="#"><img src = '../images/icon_mail.png'></a></div>
	<div><a href="#"><img src = '../images/icon_file.png' ></a></div>	
	<%}else{ %>
	
	<%} %>
</div>

</body>
</html>